commit, payload-reflink: do not write to the parent repo
authorGiuseppe Scrivano <gscrivan@redhat.com>
Thu, 29 Mar 2018 15:10:41 +0000 (17:10 +0200)
committerAtomic Bot <atomic-devel@projectatomic.io>
Fri, 13 Apr 2018 21:52:53 +0000 (21:52 +0000)
commitcdaf7cd8383af6f59a70a74d7c1467d8f7b536be
tree5f9c16f4fb85776b612c8d45922438a3cf8311ab
parentfea9277020e040a0be6d0c626262a2a2ff36a318
commit, payload-reflink: do not write to the parent repo

reintroduce the feature that was reverted with commit:

28c7bc6d0e153a0b07bdb82d25473a490765067f

Differently than the original implementation, now we don't attempt any
test for reflinks support on the parent repository, since the test
requires write access to the repository.

Additionally, also check that the two repositories are on the same
device before attempting any reflink.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Closes: #1525
Approved by: cgwalters
src/libostree/ostree-repo-commit.c
tests/installed/nondestructive/itest-payload-link.sh